package cn.edu.xmu.oomall.comment.mapper.openfeign;

import cn.edu.xmu.javaee.core.model.InternalReturnObject;
import cn.edu.xmu.oomall.comment.mapper.po.OrderItemPo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 谢传艳
 * @date 2024/12/14
 */
@FeignClient(name = "order-service")
public interface OrderItemPoMapper {

    @GetMapping("/orderitems/{oid}")
    InternalReturnObject<OrderItemPo> findOrderItemById(@PathVariable Long oid);

    @PutMapping("/orderitems/{oid}")
    InternalReturnObject<OrderItemPo> modifyOrderItem(@PathVariable Long oid, @RequestBody OrderItemPo orderItemPo);
}
